import java.awt.BorderLayout;

import javax.swing.JFrame;


public class GuiFrame extends JFrame{
	
	
	//liseners
	DrawAreaListener DAL;
	
	
	
	//screen regions
	DrawAreaPanel DrawArea = new DrawAreaPanel();
	MenuAreaPanel MenuArea = new MenuAreaPanel();
	BarMenu topMenu = new BarMenu();
	
	
	
	GuiFrame(){
		// set up the frame basics
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
		this.setSize(800,700);
		this.setLocation(200,200);
		this.setTitle("gui");
		
		//add panels
		add(DrawArea,BorderLayout.CENTER);
		add(MenuArea,BorderLayout.WEST);
		add(topMenu,BorderLayout.NORTH);
		
		//add listners
		
		//Draw Area
		DAL = new DrawAreaListener(DrawArea);
		DrawArea.addMouseListener(DAL);
		

	}
	
	
}
